#ifndef __LIB_GUI_BOX_H
#define __LIB_GUI_BOX_H

#include<stddef.h>
#include<stdbool.h>
#include"gui_spirit.h"

typedef enum
{
    GUI_BOX_ORIENTATION_MIXED=0,
    GUI_BOX_ORIENTATION_HORIZONTAL,
    GUI_BOX_ORIENTATION_VERITICAL,
}gui_box_orientation_t;

typedef struct 
{
    gui_spirit_t spirit;
    gui_box_orientation_t orientation;
    int spacing;
}gui_box_t;

#define GUI_BOX(spirit) ((gui_box_t*)(spirit))

gui_spirit_t *gui_box_create(gui_box_orientation_t orientation,int w,int h,int spacing);

#endif